package heap;

/**
 * Created with IntelliJ IDEA.
 * Description: 堆的测试
 * User: 王圆豪
 * Date: 2024-09-18
 * Time: 18:34
 */
public class Test {
    public static void main(String[] args) {
        int[] array = new int[]{27, 15, 19, 18, 28, 34, 65, 49, 25, 37};
        TestHeap testHeap = new TestHeap(array);

//        testHeap.sitDown();

//        testHeap.sitUp();

        testHeap.offer(44);

        System.out.println(testHeap.poll());
    }
}
